package com.oocl.activemq;

public class MessageProducerFactory {
	public static MessageProducerFactory factory =null;
	public static MessageProducerFactory newInstance(){
		if(factory==null){
			synchronized(MessageProducerFactory.class){
				factory = new MessageProducerFactory();
			}
		}
		return factory;
	}
	
	public MsgProducer createMsgProducer(String queueName){
		return new MsgProducer(queueName);
	}
	
	
	public MsgProducer createMsgProducer(){
		return new MsgProducer();
	}
}
